Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Removed type declaration from the attachment_is_pdf() parameter. #719

Merged
merged 1 commit into from
Feb 19, 2024

Conversation

iamdharmesh
Copy link
Member

Description of the Change

PR removes type declaration from the attachment_is_pdf() parameter. As mentioned on #710 attachment_is_pdf() is essentially a wrapper for get_post_mime_type(), it can accept either the post ID as an integer or a post object. Therefore, to accept either the post ID as an integer or a post object in attachment_is_pdf() method, type declaration from the parameter has been removed.

Closes #710

How to test the Change

  1. Confirm type declaration removal from the GH UI.

Changelog Entry

Removed - Type declaration from the attachment_is_pdf() parameter.

Credits

Props @peterwilsoncc @iamdharmesh

Checklist:

  • I agree to follow this project's Code of Conduct.
  • I have updated the documentation accordingly.
  • I have added tests to cover my change.
  • All new and existing tests pass.

@iamdharmesh iamdharmesh removed request for a team and jeffpaul February 19, 2024 08:05
@github-actions github-actions bot added this to the 3.0.0 milestone Feb 19, 2024
@github-actions github-actions bot added the needs:code-review This requires code review. label Feb 19, 2024
@dkotter dkotter merged commit fc64f71 into develop Feb 19, 2024
13 checks passed
@dkotter dkotter deleted the enhancement/710 branch February 19, 2024 15:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs:code-review This requires code review.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Consider removing type declaration from attachment_is_pdf() parameter.
2 participants